import request from '@/utils/request'

//系统配置操作
export function settingInfoHandle(data, type) {
    return request({
        url: '/business/settingInfo',
        method: type,
        data: data
    })
}
//系统配置列表
export function settingInfoList(data) {
    return request({
        url: '/business/settingInfo/list',
        method: 'get',
        params: data
    })
}
// //报警主机通道操作
// export function deviceIasChannelHandle(data, type) {
//     return request({
//         url: '/business/deviceIasChannel',
//         method: type,
//         data: data
//     })
// }
//报警主机通道列表
export function deviceIasChannelList(data) {
    return request({
        url: '/business/deviceIasChannel/list',
        method: 'get',
        params: data
    })
}
//数据存储操作
export function dbInfoHandle(data, type) {
    return request({
        url: '/business/dbInfo',
        method: type,
        data: data
    })
}
//数据存储列表
export function dbInfoList(data) {
    return request({
        url: '/business/dbInfo/list',
        method: 'get',
        params: data
    })
}